﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage/PageTemplate.Master" AutoEventWireup="True"
    Codebehind="Default.aspx.cs" Inherits="BingZi.HY.UI.Center.Manager.app_HelpUI.Default"
    Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageBody" runat="server">
    <BingZiControls:HeadMenuWebControls ID="HeadMenuWebControls1" runat="server"
         HeadOPTxt="帮助信息列表" HeadTitleTxt="帮助信息">
        <BingZiControls:HeadMenuButtonItem ButtonPopedom="New" ButtonUrl="Manager.aspx?CMD=New"
            ButtonUrlType="Href" ButtonVisible="True" ButtonName="帮助信息" />
    </BingZiControls:HeadMenuWebControls>
    <BingZiControls:TabOptionWebControls ID="TabOptionWebControls1" runat="server">
        <BingZiControls:TabOptionItem ID="TabOptionItem1" runat="server" Tab_Name="帮助信息列表">
            <asp:GridView ID="GridView1" runat="server" OnSorting="GridView1_Sorting" OnRowCreated="GridView1_RowCreated" >
                <Columns>
                    <asp:TemplateField SortExpression="HelpID" HeaderText="序号"> 
                        <ItemTemplate>
                        <a href="Manager.aspx?IDX=<%#Eval("HelpID")%>&CMD=List"><%# (this.AspNetPager1.CurrentPageIndex - 1) * this.AspNetPager1.PageSize + Container.DataItemIndex + 1%></a>
                        </ItemTemplate>
                        <ItemStyle Wrap="True" />  
                        <HeaderStyle Wrap="False" />    
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="文档/分类名称" SortExpression="H_Name" DataField="H_Name" />
                    <asp:BoundField HeaderText="上级编号" SortExpression="H_ParentID" DataField="H_ParentID" />
                    <asp:BoundField HeaderText="显示顺序" SortExpression="H_ShowOrder" DataField="H_ShowOrder" />
                    <asp:BoundField HeaderText="当前分类所在层数" SortExpression="H_Level" DataField="H_Level" />
                    <asp:BoundField HeaderText="当前分类子分类数" SortExpression="H_ChildCount" DataField="H_ChildCount" />
                    <asp:BoundField HeaderText="是否删除1:是0:否" SortExpression="H_Delete" DataField="H_Delete" />
                    <asp:BoundField HeaderText="类型1:信息;0:分类" SortExpression="H_HelpType" DataField="H_HelpType" />
                    <asp:BoundField HeaderText="最后操作时间" SortExpression="H_LastTime" DataField="H_LastTime" />
                    <asp:BoundField HeaderText="最后操作用户" SortExpression="H_LastUserID" DataField="H_LastUserID" />
                </Columns>
            </asp:GridView>
            <BingZiControls:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
            </BingZiControls:AspNetPager>
            <asp:Button ID="Button2" Visible="false" CssClass="button_bak" runat="server" Text="删除" OnClientClick="return deleteop();" OnClick="Button2_Click" />
        </BingZiControls:TabOptionItem>
        <BingZiControls:TabOptionItem ID="TabOptionItem2" runat="server" Tab_Name="查询">
            <table width="100%" border="0" cellspacing="1" cellpadding="3" align="center">
                <tr>
                    <td class="table_body">
                        文档/分类名称</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_Name_Input" title="请输入文档/分类名称~128:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        描述</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_Description_Input" title="请输入描述~2147483647:" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        上级编号</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_ParentID_Input" title="请输入上级编号~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        显示顺序</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_ShowOrder_Input" title="请输入显示顺序~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        当前分类所在层数</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_Level_Input" title="请输入当前分类所在层数~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        当前分类子分类数</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_ChildCount_Input" title="请输入当前分类子分类数~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        是否删除1:是0:否</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_Delete_Input" title="请输入是否删除1:是0:否~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        类型1:信息;0:分类</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_HelpType_Input" title="请输入类型1:信息;0:分类~255:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最后操作时间</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_LastTime_Input" title="请输入最后操作时间~datetime" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td class="table_body">
                        最后操作用户</td>
                    <td class="table_none">
                     
                        <asp:TextBox ID="H_LastUserID_Input" title="请输入最后操作用户~2147483648:int" runat="server" CssClass="text_input"></asp:TextBox>
                    
                        </td>
                </tr>
                <tr>
                    <td colspan="4" align="right">
                        <asp:Button ID="Button1" runat="server" CssClass="button_bak" Text="查询" OnClick="Button1_Click" /></td>
                </tr>
            </table>
        </BingZiControls:TabOptionItem>
    </BingZiControls:TabOptionWebControls>

<script language="javascript" type="text/javascript">
<!--

function SelectAll()
{
   var e=document.getElementsByTagName("input");
   var IsTrue;
   if(document.getElementById("CheckboxAll").value=="0")
　 {
　　 IsTrue=true;
　　 document.getElementById("CheckboxAll").value="1"
　 }
　 else
　 {
　　IsTrue=false;
　　document.getElementById("CheckboxAll").value="0"
　　}
　　
　for(var i=0;i<e.length;i++)
　{
　　if (e[i].type=="checkbox")
　　{
　　   e[i].checked=IsTrue;
　　}
　}
}
function deleteop()
{
    var checkok = false;
    var e=document.getElementsByTagName("input");
    for(var i=0;i<e.length;i++)
　  {
　     if (e[i].type=="checkbox")
　　     {
　　         if (e[i].checked==true)
　　         {
　　             checkok = true;
　　             break;　　             
　　         }
　　     }  
　  }
　  if (checkok) 
        return confirm('删除后不可恢复,确认要批量删除选中记录吗？');
    else
    {
        
        alert("请选择要删除的记录!");
        return false;
    }
}
// -->
    </script>

</asp:Content>
